package com.kevin.learn.leetcode;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateDemo2 {
    public static void main(String[] args) throws ParseException {
//        DateUtil.date(new Date()).toCalendar().add(Calendar.SECOND, 1);

        System.out.println("123".contains("1222"));

        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date date =new Date();
        System.out.println("当前时间      ："+df.format(date));
        date.setTime(date.getTime() + 10000);
        System.out.println("当前时间      ："+df.format(date));

    }


}
